package com.dtx.practice.three;

/**
 * 递归算法
 */
public class Demo01 {
    public static void main(String[] args) {
        split(12);
    }
    public static int split(int number){
        if(number > 1){
            if(number % 2 != 0) {
                System.out.println(number);
                System.out.print(split((number + 1) / 2));
            }
            System.out.print(split(number / 2));
        }
        return number;
    }
}
